home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2006 May / PCWMAY06.iso / Software / Toolkit / Songbird 0.1 / Songbird_0_1_0.exe / chrome / skin2 / bindings.xml next >
Extensible Markup Language  |  2006-02-06  |  3KB  |  65 lines

  1. <?xml version="1.0"?>
  2.  
  3. <bindings xmlns="http://www.mozilla.org/xbl"
  4.           xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  5.           xmlns:svg="http://www.w3.org/2000/svg"
  6.           xmlns:xbl="http://www.mozilla.org/xbl">
  7.  
  8.   <!-- sample custom button control -->
  9.   
  10.   <binding id="samplebutton">
  11.     <content>
  12.       <xul:multistatebutton>
  13.         <xul:groupbox>
  14.           <xul:caption label="Sample MultiStateButton"/>
  15.           <xul:label value="'State = ' + @multistatebutton_state@"/>
  16.           <xul:label value="'Mouse is ' + (@multistatebutton_mouseover@ ? '' : 'not ') + 'over' "/>
  17.           <xul:label value="'Mouse button is ' + (@multistatebutton_mousedown@ ? 'down' : 'up')"/>
  18.         </xul:groupbox>
  19.       </xul:multistatebutton>
  20.     </content>
  21.   </binding>
  22.  
  23.   <!-- cut corners out of the window region -->
  24.  
  25.   <binding id="windowregion">
  26.  
  27.     <content>
  28.       <xul:windowregionset>
  29.  
  30.         <xul:windowregionrect type="add" size="window"/>
  31.  
  32.         <xul:windowregionrect type="sub" size="6,1" anchor="topleft" offsetx="0" offsety="0"/>
  33.         <xul:windowregionrect type="sub" size="4,1" anchor="topleft" offsetx="0" offsety="1"/>
  34.         <xul:windowregionrect type="sub" size="3,1" anchor="topleft" offsetx="0" offsety="2"/>
  35.         <xul:windowregionrect type="sub" size="2,1" anchor="topleft" offsetx="0" offsety="3"/>
  36.         <xul:windowregionrect type="sub" size="1,2" anchor="topleft" offsetx="0" offsety="4"/>
  37.  
  38.         <xul:windowregionrect type="sub" size="6,1" anchor="topright" offsetx="0" offsety="0"/>
  39.         <xul:windowregionrect type="sub" size="4,1" anchor="topright" offsetx="0" offsety="1"/>
  40.         <xul:windowregionrect type="sub" size="3,1" anchor="topright" offsetx="0" offsety="2"/>
  41.         <xul:windowregionrect type="sub" size="2,1" anchor="topright" offsetx="0" offsety="3"/>
  42.         <xul:windowregionrect type="sub" size="1,2" anchor="topright" offsetx="0" offsety="4"/>
  43.  
  44.         <xul:windowregionrect type="sub" size="6,1" anchor="bottomleft" offsetx="0" offsety="0"/>
  45.         <xul:windowregionrect type="sub" size="4,1" anchor="bottomleft" offsetx="0" offsety="1"/>
  46.         <xul:windowregionrect type="sub" size="3,1" anchor="bottomleft" offsetx="0" offsety="2"/>
  47.         <xul:windowregionrect type="sub" size="2,1" anchor="bottomleft" offsetx="0" offsety="3"/>
  48.         <xul:windowregionrect type="sub" size="1,2" anchor="bottomleft" offsetx="0" offsety="4"/>
  49.  
  50.         <xul:windowregionrect type="sub" size="6,1" anchor="bottomright" offsetx="0" offsety="0"/>
  51.         <xul:windowregionrect type="sub" size="4,1" anchor="bottomright" offsetx="0" offsety="1"/>
  52.         <xul:windowregionrect type="sub" size="3,1" anchor="bottomright" offsetx="0" offsety="2"/>
  53.         <xul:windowregionrect type="sub" size="2,1" anchor="bottomright" offsetx="0" offsety="3"/>
  54.         <xul:windowregionrect type="sub" size="1,2" anchor="bottomright" offsetx="0" offsety="4"/>
  55.  
  56.       </xul:windowregionset>
  57.     </content>
  58.  
  59.   </binding>
  60.  
  61.  
  62.   <!-- more custom controls here ... -->
  63.  
  64. </bindings>
  65.